package com.hh.common.utils;

import com.hh.common.constants.Constants;
import com.hh.common.constants.SysConfigConstants;

import java.util.Arrays;
import java.util.List;

/**
 * 商户工具类
 */
public class MerUtils {

    private static final List<String> excludeKeyList = Arrays.asList(
            SysConfigConstants.CONFIG_KEY_ADMIN_LOGIN_LOGO_LEFT_TOP,
            SysConfigConstants.CONFIG_KEY_ADMIN_LOGIN_LOGO_LOGIN,
            SysConfigConstants.CONFIG_KEY_ADMIN_LOGIN_BACKGROUND_IMAGE,
            "site_logo_square"
    );
    /**
     * 是否是商户
     * @param merId
     * @return
     */
    public static boolean isMer(String merId) {
        if(Constants.PLATFORM_MER_ID.equals(merId)){
            return false;
        }
        return true;
    }

    /**
     * 排除商户配置key
     * @param name
     * @return
     */
    public static boolean excludeKey(String name) {
        return excludeKeyList.contains(name);
    }
}
